/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ControlLayer;

import ModelLayer.Actor;
import ModelLayer.SalesOrder;

/**
 *
 * @author Evil
 */
public class SaleController
{
    private SalesOrder cartOrder;

    public SaleController()
    {
    }

    public void createCartOrder(Actor employee, Actor customer)
    {
        cartOrder = new SalesOrder();
        if (employee != null)
        {
            cartOrder.setEmployee(employee);
        }
        if (customer != null)
        {
            cartOrder.setCustomer(customer);
        }
    }

    public SalesOrder getCartOrder()
    {
        return cartOrder;
    }
}


